from django.urls import path
from apps.goods.views import IndexView,ListSKUView,HotSKUView,DetailView
from apps.goods.views import CategoryVisitView
urlpatterns = [
    # 首页
    path('index/', IndexView.as_view()),

    # 列表页面
    path('list/<category_id>/skus/',ListSKUView.as_view()),

    # 热销数据
    path('hot/<category_id>/',HotSKUView.as_view()),

    # 商品详细数据
    path('detail/<sku_id>/',DetailView.as_view()),

    # 分类商品浏览量
    path('detail/visit/<category_id>/',CategoryVisitView.as_view()),
]
